<?php
/**
 * This class update the variables define in a configuration file
 * @author alvaroj
 *
 */
Class LoadConfFileDB{
    
   private $_domain; 
   private $_userdb; 
   private $_passdb; 
   private $_hostdb; 
   private $_db; 
 
   static $_instance; 
 
   private function __construct(){
   	 
      require DP_BASE_DIR .'/configuration/ConfigFile.properties.php';
       
      $this->_domain=$domain; 
      $this->_userdb=$user; 
      $this->_passdb=$password; 
      $this->_hostdb=$host; 
      $this->_db=$db; 
   } 
 
   private function __clone(){ } 
 
   public static function getInstance(){ 
      if (!(self::$_instance instanceof self)){ 
         self::$_instance=new self(); 
      } 
      return self::$_instance; 
   } 
 
   public function getUserDB(){ 
      $var=$this->_userdb; 
      return $var; 
   } 
 
   public function getHostDB(){ 
      $var=$this->_hostdb; 
      return $var; 
   } 
 
   public function getPassDB(){ 
      $var=$this->_passdb; 
      return $var; 
   } 
 
   public function getDB(){ 
      $var=$this->_db; 
      return $var; 
   } 
 
}
